<template>
  <div>
    <div class="menu-box" v-routers="{path:item.path}">
      <img :src="item.img" alt="">
      <div class="bottom">
        {{ item.name }}
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    props:['item']
  }
</script>

<style scoped lang="scss">
.menu-box{
  width: 106px;
  height: 95px;
  background: #FFFFFF;
  box-shadow: 0px 4px 4px 0px rgba(160,58,58,0.25);
  border-radius: 20px 20px 10px 10px;
  position: relative;
  text-align: center;
  margin-right: 5px;
  margin-top: 10px;
  img{
    height: 70px;
    width: 70px;
    object-fit: cover;
  }
  .bottom{
    width: 106px;
    position: absolute;
    bottom: 0;
    height: 24px;
    background: #5A4CBB;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 4px 0px rgba(89,67,221,0.25);
    border-radius: 10px 10px 10px 10px;
    font-weight: bold;
    font-size: 12px;
    color: #FFFFFF;
    line-height: 12px;
  }
}
</style>